package de.lang.rollo.controller.configurations;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.yammer.dropwizard.config.Configuration;
import com.fasterxml.jackson.annotation.JsonProperty;

import org.hibernate.validator.constraints.NotEmpty;

public class GpioConfiguration extends Configuration {
//    @NotEmpty
//    @JsonProperty
//    private String template;
    
    @JsonProperty
    private Boolean runningOnPi = false;
    


    @JsonProperty
    private DatabaseConfiguration database = new DatabaseConfiguration();



    @JsonProperty
    private PinConfiguration pin = new PinConfiguration();
    
    
    public DatabaseConfiguration getDatabaseConfiguration() {
        return database;
    }
    
    

//    @NotEmpty
//    @JsonProperty
//    private String defaultName = "Stranger";
    
    
    public PinConfiguration getPinConfiguration() {
		return pin;
	}



	public Boolean getRunningOnPi() {
		return runningOnPi;
	}

//	public String getGPIOFacade() {
//        return template;
//    }
//
//    public String getDefaultName() {
//        return defaultName;
//    }
}